package cn.com.taiji.pos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 顾客类型
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CardCustomerType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;

    /**
     * 顾客类型名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 顾客类型编码
     */
    @TableField("CODE")
    private String code;

    /**
     * 相关描述
     */
    @TableField("DESCRIPTION")
    private String description;

    /**
     * 是否补贴(0:否1:是)
     */
    @TableField("IS_SUBSIDY")
    private String isSubsidy;

    /**
     * 是否按次(0:否1:是)
     */
    @TableField("IS_TIMES")
    private String isTimes;

    /**
     * 是否透支(记账)(0:否1:是)
     */
    @TableField("IS_OVERDRAFT")
    private String isOverdraft;

    /**
     * 透支金额
     */
    @TableField("OVERDRAFT")
    private BigDecimal overdraft;

    /**
     * 是否打折(0:否1:是)
     */
    @TableField("IS_DISCOUNT")
    private String isDiscount;

    /**
     * 折扣比例
     */
    @TableField("DISCOUNT_PERCENT")
    private BigDecimal discountPercent;

    /**
     * 状态(0:启用,1:停用)
     */
    @TableField("STATUS")
    private String status;

    /**
     * 创建人
     */
    @TableField("CREATOR_ID")
    private String creatorId;

    /**
     * 创建人姓名
     */
    @TableField("CREATOR_NAME")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 是否导出xml(0:否1:是)
     */
    @TableField("XML_OUT")
    private String xmlOut;

    @TableField("EVENINGMINIMUM")
    private Double eveningMinimum = 0.0;

    @TableField("MORNINGMINIMUM")
    private Double morningMinimum = 0.0;

    @TableField("AFTERNOONMINIMUM")
    private Double afternoonMinimum = 0.0;

    @TableField("MORNING_ALLOWANCE")
    private Double morningAllowance = 0.0;
    @TableField("AFTERNOON_ALLOWANCE")
    private Double afternoonAllowance = 0.0;
    @TableField("EVENING_ALLOWANCE")
    private Double eveningAllowance = 0.0;


}
